<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <script>
        var ctx = '';
        var basePath = '/ec-demo';
        var locale = 'zh-cn'
    </script>
    <script src="../../../bower_components/requirejs/require.js" data-main="../../../static/app.js" data-bootstrap-modules="'demo/TestDictModule'"></script>
</head>
<body ng-controller="TestDictController" g-dict="sex,course">

<hr>

过滤器形式使用效果：<br/>

<hr/>
下拉数据绑定从$rootScope.$dict获取绑定数据：<br/>
性别：
<select>
    <option ng-repeat="sex in $dict.sex" value="{{sex.key}}">{{sex.value}}</option>
</select>
<br>
课程：
<select>
    <option ng-repeat="course in $dict.course" value="{{course.key}}">{{course.value}}</option>
</select>

</body>
</html>